Applet Security Structure
When you instantiate an applet using theJMNewAppletViewer
function, you must pass a data structure that supplies security information for the applet. This data structure is defined by theJMAppletSecurity
data type.
struct JMAppletSecurity { UInt32 fVersion; JMNetworkSecurityOptions fNetworkSecurity; JMFileSystemOptions fFileSystemSecurity; Boolean fRestrictSystemAccess; Boolean fRestrictSystemDefine; Boolean fRestrictApplicationAccess; Boolean fRestrictApplicationDefine; };
Field Description
fVersion
- The version of JManager. You should set this field to
kJMVersion
.JMNetworkSecurityOptions
- A flag indicating access privileges for applets connecting to networks. See "Applet Security Indicators" for a list of possible values for this field.
JMFileSystemOptions
- A flag indicating applet access privileges to the local file system. See "Applet Security Indicators" for a list of possible values for this field.
fRestrictSystemAccess
- If set to true, the applet cannot access system packages found in the
mrj.security.system.access
property. (The default packages in the property arecom.apple.*
andsun.*
.)fRestrictSystemDefine
- If set to true, the applet cannot load system packages found in the
mrj.security.system.define
property. (The default packages in the property arecom.apple.*
andsun.*
.)fRestrictApplicationAccess
- If set to true, the applet cannot access application packages found in the
mrj.security.application.access
property.fRestrictApplicationDefine
- If set to true, the applet cannot load application packages found in the
mrj.security.application.define
property.